import 'package:flutter/material.dart';

class Tab3Screen extends StatelessWidget {
  const Tab3Screen({super.key});

  @override
  Widget build(BuildContext context) {
    return Center(
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          const Text(
            'Content Area 3',
            style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
          ),
          const SizedBox(height: 30),
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceEvenly,
            children: [
              _buildCustonButton(context,
                  icon: Icons.cloud_upload, label: 'Upload'),
              _buildCustonButton(context,
                  icon: Icons.settings,
                  label: 'Settings',
                  color: Colors.orange),
            ],
          ),
        ],
      ),
    );
  }
}

Widget _buildCustonButton(BuildContext context,
    {required IconData icon,
    required String label,
    Color color = Colors.blue}) {
  return Column(
    children: [
      Container(
        decoration: BoxDecoration(color: color, shape: BoxShape.circle),
        padding: const EdgeInsets.all(15),
        child: Icon(icon, color: Colors.white, size: 30),
      ),
      const SizedBox(height: 8),
      Text(label),
    ],
  );
}
